Linux compile working
This commit is contained in:
parent
47761441c0
commit
f25ca44f03
5 changed files with 169 additions and 4 deletions
|
@ -120,6 +120,18 @@ set(MAC_INCLUDES
|
|||
"src/Platform/Unix/UnixUtilities.h"
|
||||
)
|
||||
|
||||
# Platform-specific definitions
|
||||
if(WIN32)
|
||||
add_definitions(-DBUILD_WINDOWS)
|
||||
elseif(UNIX)
|
||||
if(APPLE)
|
||||
add_definitions(-DBUILD_MACOS)
|
||||
else()
|
||||
add_definitions(-DBUILD_LINUX)
|
||||
endif()
|
||||
add_definitions(-DBUILD_UNIX)
|
||||
endif()
|
||||
|
||||
# Platform-specific definitions
|
||||
if(WIN32)
|
||||
message(STATUS "Compiling for Windows...")
|
||||
|
@ -140,7 +152,7 @@ elseif(UNIX)
|
|||
endif()
|
||||
|
||||
# Create the shared library
|
||||
add_library(HarmonyLinkLibShared SHARED ${LIB_SOURCES} ${SHARED_SOURCES})
|
||||
add_library(HarmonyLinkLibShared SHARED ${LIB_SOURCES} ${SHARED_SOURCES} ${LIB_INCLUDES})
|
||||
target_include_directories(HarmonyLinkLibShared
|
||||
PRIVATE
|
||||
"${PROJECT_SOURCE_DIR}/src"
|
||||
|
@ -151,7 +163,7 @@ target_include_directories(HarmonyLinkLibShared
|
|||
target_compile_definitions(HarmonyLinkLibShared PRIVATE HARMONYLINKLIB_SHARED)
|
||||
|
||||
# Create the static library
|
||||
add_library(HarmonyLinkLibStatic STATIC ${LIB_SOURCES})
|
||||
add_library(HarmonyLinkLibStatic STATIC ${LIB_SOURCES} ${LIB_INCLUDES})
|
||||
target_include_directories(HarmonyLinkLibStatic
|
||||
PRIVATE
|
||||
"${PROJECT_SOURCE_DIR}/src"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue