37 lines
893 B
CMake
Raw Normal View History

2021-11-28 20:32:09 +08:00
cmake_minimum_required(VERSION 3.0.0)
2021-11-28 22:27:24 +08:00
project(pikaByteCodeGen VERSION 0.1.0)
2021-11-28 20:32:09 +08:00
include(CTest)
enable_testing()
aux_source_directory(pikascript/pikascript-core pikascript-core)
include_directories(pikascript/pikascript-core)
2022-05-05 16:36:36 +08:00
include_directories(libpikabinder)
link_directories(libpikabinder)
2021-11-28 20:32:09 +08:00
2021-11-28 22:27:24 +08:00
add_executable(pikaByteCodeGen main.c
2021-11-28 20:32:09 +08:00
${pikascript-core}
)
OPTION(CROSS_COMPILE "cross-compile" OFF)
IF(CROSS_COMPILE)
target_link_libraries(pikaByteCodeGen
pikabinder
ws2_32
bcrypt
user32
userenv
)
ELSE(CROSS_COMPILE)
target_link_libraries(pikaByteCodeGen
pikabinder
2022-05-05 22:39:04 +08:00
pthread
dl
)
ENDIF(CROSS_COMPILE)
2022-05-05 16:36:36 +08:00
2021-11-28 20:32:09 +08:00
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)