34 lines
533 B
CMake
34 lines
533 B
CMake
file(GLOB_RECURSE SANDBOX_COMMON
|
|
CONFIGURE_DEPENDS
|
|
src/common/*.cpp
|
|
)
|
|
|
|
file(GLOB_RECURSE SANDBOX_CLIENT
|
|
CONFIGURE_DEPENDS
|
|
src/client/*.cpp
|
|
)
|
|
|
|
file(GLOB_RECURSE SANDBOX_SERVER
|
|
CONFIGURE_DEPENDS
|
|
src/server/*.cpp
|
|
)
|
|
|
|
add_executable(SandboxClient
|
|
${SANDBOX_COMMON}
|
|
${SANDBOX_CLIENT}
|
|
)
|
|
|
|
target_link_libraries(SandboxClient
|
|
PRIVATE
|
|
DeerithClient
|
|
)
|
|
|
|
add_executable(SandboxServer
|
|
${SANDBOX_COMMON}
|
|
${SANDBOX_SERVER}
|
|
)
|
|
|
|
target_link_libraries(SandboxServer
|
|
PRIVATE
|
|
DeerithServer
|
|
) |