mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
16 lines
570 B
CMake
16 lines
570 B
CMake
# Extract project name from folder
|
|
get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
|
|
string(REPLACE " " "_" PROJECT_NAME "${PROJECT_NAME}")
|
|
|
|
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS *.cpp *.hpp)
|
|
file(GLOB_RECURSE INCLUDES CONFIGURE_DEPENDS includes/*)
|
|
|
|
add_library(${PROJECT_NAME} STATIC
|
|
${SOURCES}
|
|
${INCLUDES}
|
|
)
|
|
|
|
source_group(TREE ${PROJECT_SOURCE_DIR} FILES ${SOURCES} ${INCLUDES})
|
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC includes)
|
|
target_link_libraries(${PROJECT_NAME} VTIL-Common VTIL-SymEx VTIL-Architecture)
|