move "BUILDING" definition into the library's subdir
This commit is contained in:
@@ -30,8 +30,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
|||||||
include(UseBackportedModules)
|
include(UseBackportedModules)
|
||||||
include(DoxygenTargets)
|
include(DoxygenTargets)
|
||||||
|
|
||||||
add_definitions(-DWIIUSE_COMPILE_LIB)
|
|
||||||
|
|
||||||
if(BUILD_WIIUSE_SHARED_LIB)
|
if(BUILD_WIIUSE_SHARED_LIB)
|
||||||
set(WIIUSE_LIB_TYPE SHARED)
|
set(WIIUSE_LIB_TYPE SHARED)
|
||||||
else()
|
else()
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ if(MSVC)
|
|||||||
list(APPEND API wiiuse_msvcstdint.h)
|
list(APPEND API wiiuse_msvcstdint.h)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_definitions(-DWIIUSE_COMPILE_LIB)
|
||||||
|
|
||||||
add_library(wiiuse ${WIIUSE_LIB_TYPE} ${SOURCES} ${API})
|
add_library(wiiuse ${WIIUSE_LIB_TYPE} ${SOURCES} ${API})
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|||||||
Reference in New Issue
Block a user