Permalink
Browse files

Add comments

  • Loading branch information...
1 parent 23f36d2 commit 991460d4bbdddc4a111fecfbb0b16a799031ad98 @JonathanSalwan committed Dec 31, 2016
Showing with 7 additions and 0 deletions.
  1. +7 −0 CMakeLists.txt
View
@@ -137,6 +137,7 @@ if(PYTHON_BINDINGS)
include_directories(${PYTHON_INCLUDE_DIRS})
endif()
+
# Find Z3
if(NOT Z3_INCLUDE_DIRS)
set(Z3_INCLUDE_DIRS "$ENV{Z3_INCLUDE_DIRS}")
@@ -259,20 +260,26 @@ file(
${CMAKE_SOURCE_DIR}/src/libtriton/includes/*
)
+
+# Define gloabl shared linker flags
set(LIBTRITON_SHARED_LINKER_FLAGS " ")
+
+# Special cases for MinGW
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
set(LIBTRITON_OTHER_LIBS "-lgomp")
if (NOT STATICLIB)
set(LIBTRITON_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols")
endif()
endif()
+
# Define library's properties
add_library(${PROJECT_LIBTRITON} ${LIBTRITON_KIND_LINK} ${LIBTRITON_SOURCE_FILES})
set_target_properties(${PROJECT_LIBTRITON} PROPERTIES COMPILE_FLAGS ${LIBTRITON_CXX_FLAGS})
set_target_properties(${PROJECT_LIBTRITON} PROPERTIES LINK_FLAGS ${LIBTRITON_SHARED_LINKER_FLAGS})
+
# Link Triton's dependencies
target_link_libraries(
${PROJECT_LIBTRITON}

0 comments on commit 991460d

Please sign in to comment.