2014-10-17 21:23:00 -04:00
|
|
|
if(NOT GTK2_FOUND)
|
|
|
|
|
return()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_library("GtkModule"
|
2019-02-16 11:32:52 -05:00
|
|
|
SHARED
|
|
|
|
|
"arch/LoadingWindow/LoadingWindow_GtkModule.cpp"
|
|
|
|
|
"arch/LoadingWindow/LoadingWindow_GtkModule.h")
|
2014-10-17 21:23:00 -04:00
|
|
|
|
2017-06-18 11:55:16 -04:00
|
|
|
sm_add_compile_flag("GtkModule" "-std=${SM_CPP_STANDARD}")
|
|
|
|
|
|
2019-02-16 11:32:52 -05:00
|
|
|
# It is normally not appropriate to set the prefix to the empty string. This is
|
|
|
|
|
# to maintain compatibility with the current source. At some point, it may be
|
|
|
|
|
# worth being more flexible.
|
2014-10-17 21:23:00 -04:00
|
|
|
set_target_properties("GtkModule" PROPERTIES PREFIX "")
|
|
|
|
|
set_target_properties("GtkModule" PROPERTIES OUTPUT_NAME "GtkModule")
|
2019-02-16 11:32:52 -05:00
|
|
|
set_target_properties("GtkModule"
|
|
|
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${SM_ROOT_DIR}")
|
|
|
|
|
set_target_properties("GtkModule"
|
|
|
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY_RELEASE
|
|
|
|
|
"${SM_ROOT_DIR}")
|
|
|
|
|
set_target_properties(
|
|
|
|
|
"GtkModule"
|
|
|
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY_DEBUG "${SM_ROOT_DIR}")
|
|
|
|
|
set_target_properties("GtkModule"
|
|
|
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY_MINSIZEREL
|
|
|
|
|
"${SM_ROOT_DIR}")
|
|
|
|
|
set_target_properties("GtkModule"
|
|
|
|
|
PROPERTIES LIBRARY_OUTPUT_DIRECTORY_RELWITHDEBINFO
|
|
|
|
|
"${SM_ROOT_DIR}")
|
2014-10-17 21:23:00 -04:00
|
|
|
target_link_libraries("GtkModule" ${GTK2_LIBRARIES})
|
|
|
|
|
set_property(TARGET "GtkModule" PROPERTY FOLDER "Internal Libraries")
|
|
|
|
|
list(APPEND SM_GTK_INCLUDE_DIRS
|
2019-02-16 11:32:52 -05:00
|
|
|
"${SM_SRC_DIR}"
|
|
|
|
|
"${SM_SRC_DIR}/generated"
|
|
|
|
|
"${SM_SRC_DIR}/arch/LoadingWindow"
|
|
|
|
|
"${GTK2_INCLUDE_DIRS}")
|
2015-09-05 13:14:44 -04:00
|
|
|
|
|
|
|
|
sm_add_compile_definition("GtkModule" CMAKE_POWERED)
|
|
|
|
|
|
2014-10-17 21:23:00 -04:00
|
|
|
target_include_directories("GtkModule" PUBLIC ${SM_GTK_INCLUDE_DIRS})
|