Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
da1c7787
Commit
da1c7787
authored
Sep 26, 2011
by
Nikias Bassen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move cmake endianess detection to proper place and actually USE it
parent
13ecca44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
CMakeLists.txt
CMakeLists.txt
+4
-4
CMakeLists.txt
src/CMakeLists.txt
+1
-0
No files found.
CMakeLists.txt
View file @
da1c7787
...
@@ -39,6 +39,10 @@ To do so, perform the following steps in the base directory:
...
@@ -39,6 +39,10 @@ To do so, perform the following steps in the base directory:
Then, run cmake again."
)
Then, run cmake again."
)
ENDIF
()
ENDIF
()
INCLUDE
(
TestBigEndian
)
TEST_BIG_ENDIAN
(
endianess
)
SET
(
PLIST_BYTE_ORDER
${
endianess
}
)
ADD_SUBDIRECTORY
(
libcnary
)
ADD_SUBDIRECTORY
(
libcnary
)
ADD_SUBDIRECTORY
(
src
)
ADD_SUBDIRECTORY
(
src
)
ADD_SUBDIRECTORY
(
plutil
)
ADD_SUBDIRECTORY
(
plutil
)
...
@@ -49,10 +53,6 @@ IF ( SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND )
...
@@ -49,10 +53,6 @@ IF ( SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND )
ADD_SUBDIRECTORY
(
swig
)
ADD_SUBDIRECTORY
(
swig
)
ENDIF
(
SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND
)
ENDIF
(
SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND
)
INCLUDE
(
TestBigEndian
)
TEST_BIG_ENDIAN
(
endianess
)
SET
(
PLIST_BYTE_ORDER
${
endianess
}
)
# add uninstall target
# add uninstall target
CONFIGURE_FILE
(
"
${
CMAKE_SOURCE_DIR
}
/cmake/modules/cmake_uninstall.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
CONFIGURE_FILE
(
"
${
CMAKE_SOURCE_DIR
}
/cmake/modules/cmake_uninstall.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake"
IMMEDIATE @ONLY
)
ADD_CUSTOM_TARGET
(
uninstall
"
${
CMAKE_COMMAND
}
"
-P
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake"
)
ADD_CUSTOM_TARGET
(
uninstall
"
${
CMAKE_COMMAND
}
"
-P
"
${
CMAKE_CURRENT_BINARY_DIR
}
/cmake_uninstall.cmake"
)
...
...
src/CMakeLists.txt
View file @
da1c7787
...
@@ -34,6 +34,7 @@ SET(libcnary_object_files
...
@@ -34,6 +34,7 @@ SET(libcnary_object_files
SET_SOURCE_FILES_PROPERTIES
(
${
libcnary_object_files
}
PROPERTIES EXTERNAL_OBJECT true GENERATED true
)
SET_SOURCE_FILES_PROPERTIES
(
${
libcnary_object_files
}
PROPERTIES EXTERNAL_OBJECT true GENERATED true
)
SET
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-DPLIST_BYTE_ORDER=
${
PLIST_BYTE_ORDER
}
"
)
ADD_LIBRARY
(
plist SHARED
${
libplist_SRC
}
${
libcnary_object_files
}
)
ADD_LIBRARY
(
plist SHARED
${
libplist_SRC
}
${
libcnary_object_files
}
)
TARGET_LINK_LIBRARIES
(
plist
${
LIBXML2_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
plist
${
LIBXML2_LIBRARIES
}
)
SET_TARGET_PROPERTIES
(
plist PROPERTIES VERSION
${
LIBPLIST_LIBVERSION
}
)
SET_TARGET_PROPERTIES
(
plist PROPERTIES VERSION
${
LIBPLIST_LIBVERSION
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment