From 19f292ed50c4a9bbce95f77d4af4e6af5da7722b Mon Sep 17 00:00:00 2001 From: SeleDreams Date: Mon, 24 Apr 2023 22:18:45 +0200 Subject: [PATCH] Added cmake support --- .gitignore | 2 ++ CMakeLists.txt | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 CMakeLists.txt diff --git a/.gitignore b/.gitignore index 67de2ec..56d4cf4 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ Makefile picasso .deps/ *.bz2 + +build/ \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..89e01db --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +cmake_minimum_required(VERSION 3.0) +project (picasso VERSION 2.7.1) +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) +add_library(picasso source/picasso_assembler.cpp) +add_executable(picasso_frontend source/picasso_frontend.cpp) +target_link_libraries(picasso_frontend picasso) +add_compile_definitions(PACKAGE_STRING="${PROJECT_NAME} ${PROJECT_VERSION}") +set_target_properties(picasso_frontend PROPERTIES OUTPUT_NAME "${PROJECT_NAME}") \ No newline at end of file