Skip to content

Instantly share code, notes, and snippets.

@osa1
Created February 23, 2014 22:15
Show Gist options
  • Save osa1/9178136 to your computer and use it in GitHub Desktop.
Save osa1/9178136 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 2.8)
project(SqliteEdit)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR})
find_package(Sqlite3 REQUIRED)
find_library(wxWidgets NAMES )
find_package(wxWidgets COMPONENTS core base REQUIRED)
add_executable(SqliteEdit Main.cpp)
target_compile_definitions(SqliteEdit PRIVATE ${wxWidgets_DEFINITIONS})
include_directories(${wxWidgets_INCLUDE_DIRS})
include_directories(${SQLITE3_INCLUDE_DIR})
target_link_libraries(SqliteEdit ${SQLITE3_LIBRARIES})
target_link_libraries(SqliteEdit ${wxWidgets_LIBRARIES})
install(TARGETS SqliteEdit DESTINATION bin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment