|
|
|
@ -22,6 +22,7 @@ SET_SOURCE_FILES_PROPERTIES(${GENERATED_HDRS} PROPERTIES HEADER_FILE_ONLY TRUE G
|
|
|
|
|
SET(MAIN_HEADERS
|
|
|
|
|
include/Internal.h
|
|
|
|
|
include/DFHack.h
|
|
|
|
|
include/DFHackVersion.h
|
|
|
|
|
include/Console.h
|
|
|
|
|
include/Core.h
|
|
|
|
|
include/ColorText.h
|
|
|
|
@ -249,6 +250,9 @@ ELSE(WIN32)
|
|
|
|
|
SET(PROJECT_LIBS psapi dfhack-tinyxml dfhack-tinythread)
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
ADD_LIBRARY(dfhack-version STATIC DFHackVersion.cpp)
|
|
|
|
|
SET_TARGET_PROPERTIES(dfhack-version PROPERTIES COMPILE_DEFINITIONS DFHACK_VERSION="${DFHACK_VERSION}")
|
|
|
|
|
|
|
|
|
|
ADD_LIBRARY(dfhack SHARED ${PROJECT_SOURCES})
|
|
|
|
|
ADD_DEPENDENCIES(dfhack generate_headers)
|
|
|
|
|
|
|
|
|
@ -290,7 +294,7 @@ IF(APPLE)
|
|
|
|
|
SET_TARGET_PROPERTIES(dfhack PROPERTIES SOVERSION 1.0.0)
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(dfhack protobuf-lite clsocket lua ${PROJECT_LIBS})
|
|
|
|
|
TARGET_LINK_LIBRARIES(dfhack protobuf-lite clsocket lua dfhack-version ${PROJECT_LIBS})
|
|
|
|
|
SET_TARGET_PROPERTIES(dfhack PROPERTIES LINK_INTERFACE_LIBRARIES "")
|
|
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES(dfhack-client protobuf-lite clsocket)
|
|
|
|
|