Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Commit

Permalink
Splitted "xxc" project into "xxclib" in "CMakeLists.txt".
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Hermanns committed Jun 13, 2015
1 parent 5d9fa4a commit 9702c21
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,18 @@ else()
endif()

set(
FilesAll
FilesXXC
${FilesBaseAll}
${FilesCompilerAll}
${FilesShellAll}
${FilesPlatform}
${FilesPlatformDependent}
)

set(
FilesXXCShell
${FilesShellAll}
)

set(
FilesXVM
${PROJECT_SOURCE_DIR}/VirtualMachine/xvm.c
Expand Down Expand Up @@ -218,9 +222,10 @@ include_directories("${PROJECT_SOURCE_DIR}/Shell/Command")

# === Binaries ===

add_executable(xxc ${FilesAll})
add_executable(xxc ${FilesXXCShell})
add_executable(xvm ${FilesXVMShell})

add_library(xxclib STATIC ${FilesXXC})
add_library(xvmlib STATIC ${FilesXVM})
add_library(xvm_wrapper STATIC ${FilesXVMWrapper})
add_library(xvm_module STATIC ${FilesXVMModule})
Expand All @@ -233,6 +238,7 @@ add_library(Module_BigNum SHARED ${FilesModuleBigNum})
SETUP_CPP_MODULE(BigNum)

SETUP_LIB_OUTPUT(xxc CXX)
SETUP_LIB_OUTPUT(xxclib CXX)
SETUP_LIB_OUTPUT(xvmlib C)
SETUP_LIB_OUTPUT(xvm C)
SETUP_LIB_OUTPUT(xvm_wrapper CXX)
Expand All @@ -249,16 +255,18 @@ set_target_properties(
DEBUG_POSTFIX "D"
)

target_link_libraries(xvm xvmlib)
target_link_libraries(xvm_wrapper xvmlib)
target_link_libraries(xxc xvm_wrapper)
target_link_libraries(xxclib xvm_wrapper)
target_link_libraries(xvm xvmlib)
target_link_libraries(xxc xxclib)

if(WIN32)
target_link_libraries(Module_Socket wsock32 ws2_32)
endif()

if(UNIX)
target_link_libraries(xxc dl m)
target_link_libraries(xxclib dl m)
target_link_libraries(xvm dl m)
target_link_libraries(xvmlib dl m)
target_link_libraries(xvm_wrapper dl m)
Expand Down

0 comments on commit 9702c21

Please sign in to comment.