-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (19 loc) · 803 Bytes
/
CMakeLists.txt
File metadata and controls
25 lines (19 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
project(b2 C CXX)
cmake_minimum_required(VERSION 2.4)
file(GLOB SRCS *.cpp)
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/images.h
DEPENDS genresheader.py
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/genresheader.py
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/images.h
${CMAKE_CURRENT_SOURCE_DIR}/resources)
add_custom_target(genresheader ALL
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/images.h)
if(WIN32)
set(SRCS ${SRCS} resources/b.rc)
endif(WIN32)
add_executable(b2 WIN32 MACOSX_BUNDLE ${SRCS})
find_package(wxWidgets REQUIRED base core xml)
include(${wxWidgets_USE_FILE})
include_directories(${wxWidgets_INCLUDE_DIRS})
link_directories(${wxWidgets_LIBRARY_DIRS})
target_link_libraries(b2 ${wxWidgets_LIBRARIES})