Working on CMake Stuff
This commit is contained in:
parent
23473885ea
commit
f941e90f08
@ -1,3 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(Raycaster)
|
||||
add_executable(raycaster src/main.cpp)
|
||||
project(Raycaster VERSION 0.1)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
add_executable(raycaster src/main.cpp)
|
||||
configure_file(src/RaycasterConfig.h.in RaycasterConfig.h)
|
||||
target_include_directories(raycaster PUBLIC "${PROJECT_BINARY_DIR}")
|
4
src/RaycasterConfig.h.in
Normal file
4
src/RaycasterConfig.h.in
Normal file
@ -0,0 +1,4 @@
|
||||
// the configured options and settings for Tutorial
|
||||
#define Raycaster_VERSION_MAJOR @Raycaster_VERSION_MAJOR@
|
||||
#define Raycaster_VERSION_MINOR @Raycaster_VERSION_MINOR@
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <iostream>
|
||||
#include "RaycasterConfig.h"
|
||||
|
||||
int main(){
|
||||
std::cout << "test" << std::endl;
|
||||
int main(int argc, char *argv[]){
|
||||
std::cout << Raycaster_VERSION_MAJOR << "." << Raycaster_VERSION_MINOR << std::endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user