first commit
This commit is contained in:
commit
b8c8d7bc58
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
Makefile
|
||||
/CMakeFiles
|
||||
CMakeCache.txt
|
||||
cmake_install_cmake
|
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
cmake_minimum_required (VERSION 3.1.0)
|
||||
project(fischl)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
include_directories(
|
||||
# fischl include files
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
add_executable(fischl
|
||||
|
||||
# Header files
|
||||
|
||||
include/fischl.h
|
||||
lib/fischl.cpp
|
||||
lib/main.cpp
|
||||
|
||||
)
|
49
cmake_install.cmake
Normal file
49
cmake_install.cmake
Normal file
@ -0,0 +1,49 @@
|
||||
# Install script for directory: /Users/factorialn/Projects/iloveos
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
# Set default install directory permissions.
|
||||
if(NOT DEFINED CMAKE_OBJDUMP)
|
||||
set(CMAKE_OBJDUMP "/Library/Developer/CommandLineTools/usr/bin/objdump")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT)
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||
file(WRITE "/Users/factorialn/Projects/iloveos/${CMAKE_INSTALL_MANIFEST}"
|
||||
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
7
include/fischl.h
Normal file
7
include/fischl.h
Normal file
@ -0,0 +1,7 @@
|
||||
class fischl{
|
||||
|
||||
// declare
|
||||
public:
|
||||
void init();
|
||||
|
||||
};
|
7
lib/fischl.cpp
Normal file
7
lib/fischl.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include "fischl.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
void fischl::init(){
|
||||
printf("Hello Fischl!");
|
||||
}
|
7
lib/main.cpp
Normal file
7
lib/main.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include "fischl.h"
|
||||
|
||||
int main(){
|
||||
fischl *F = new fischl;
|
||||
F->init();
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user