Tried harder with the CMake lists. Still no go. They should probably be rewritten again...

This commit is contained in:
Pietro Gagliardi 2016-06-02 17:28:51 -04:00
parent da8649312e
commit 14f5d5388a
1 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,9 @@
# 30 may 2016 # 30 may 2016
cmake_minimum_required(VERSION 2.8.12) cmake_minimum_required(VERSION 2.8.12)
# TODOs
# - ensure all set_target_properties() calls are approrpiately set, APPEND, and APPEND_STRING
# set up our configurations # set up our configurations
set(CMAKE_CONFIGURATION_TYPES Debug Static Release ReleaseStatic) set(CMAKE_CONFIGURATION_TYPES Debug Static Release ReleaseStatic)
# we load the variables after calling project() # we load the variables after calling project()
@ -170,11 +173,11 @@ if(NOT WIN32)
endif() endif()
# let cmake handle quoting and escaping for us # let cmake handle quoting and escaping for us
if(WIN32) if(WIN32)
set_target_properties(libui PROPERTIES target_compile_definitions(libui
COMPILE_DEFINITIONS "_UI_EXTERN=__declspec(dllexport) extern") PRIVATE "_UI_EXTERN=__declspec(dllexport) extern")
else() else()
set_target_properties(libui PROPERTIES target_compile_definitions(libui
COMPILE_DEFINITIONS "_UI_EXTERN=__attribute__((visibility(\"default\"))) extern") PRIVATE "_UI_EXTERN=__attribute__((visibility(\"default\"))) extern")
endif() endif()
macro(_add_exec _name) macro(_add_exec _name)